<?php

require_once '..\vo\UserVO.php';
require_once '..\dao\UserDAO.php';

class User {
    
    public function add($UserVO) {
        $UserDAO = new UserDAO();
        return $UserDAO->add($UserVO);
    }
    
    public function update($UserVO) {
        $UserDAO = new UserDAO();
        return $UserDAO->update($UserVO);
    }
    
    public function delete($id) {
        $UserDAO = new UserDAO();
        $UserDAO->delete($id);
    }
    
    public function select($id) {
        $UserDAO = new UserDAO();
        return $UserDAO->select($id);
    }
    
    public function listAll() {
        $UserDAO = new UserDAO();
        return $UserDAO->listAll();
    }
    
    public function verifyLogin($UserVO) {
        $UserDAO = new UserDAO();
        return $UserDAO->verifyLogin($UserVO);
    }
    
}

?>